import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Home from "../views/Home.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/t",
    name: "Test",
    component: () =>
      import("../views/demo/Test.vue"),
  },
  {
    path: "/t2",
    name: "Test2",
    component: () =>
      import("../views/demo/Test2.vue"),
  },{
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/space",
    name: "Space",
    component: () =>
      import("../views/Space.vue"),
  },
  {
    path: "/spaceDetail",
    name: "SpaceDetail",
    component: () =>
      import("../views/SpaceDetail.vue"),
  },
  {
    path: "/nfts",
    name: "Nfts",
    component: () =>
      import("../views/Nfts.vue"),
  },
  {
    path: "/nft",
    name: "Nft",
    component: () =>
      import("../views/Nft.vue"),
  },
  {
    path: "/box",
    name: "Box",
    component: () =>
      import("../views/Box.vue"),
  },
  {
    path: "/transaction",
    name: "Transaction",
    component: () =>
      import("../views/Transaction.vue"),
  },
  {
    path: "/nft-box-detail",
    name: "NftBoxDetail",
    component: () =>
      import("../views/NftBoxDetail.vue"),
  },
  {
    path: "/nft-detail",
    name: "NftDetail",
    component: () =>
      import("../views/NftDetail.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
